package org.biubiu0002.baiblog.im;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * @Author: biubiu0002
 * @Date: 2022/9/1 23:54
 **/
@SpringBootApplication
@EnableDubbo
public class BaiBlogImApplication {
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(BaiBlogImApplication.class, args);
        NettyServer nettyServer = (NettyServer) applicationContext.getBean("nettyServer");
        nettyServer.run();

    }
}
